<?php
sleep(1);
//$_POST["param"] 获取文本框的值;
//$_POST["name"]  获取文本框的name属性值，通过该值来判断是哪个文本框请求处理，这样当有多个实时验证请求时可以指定同一个文件处理;
//效果演示，该句可移除;
//echo "y" //验证通过输出小写字母"y"，出错则输出相应错误信息;

//echo '{"info":"提交成功！","status":"y","code":"200","msg":"提交成功"}';


$arr = '[{
	"title": "标题1",
	"sub": "对标题1的简介",
	"image_url": "http://www.lhave.cn/static/lhave/images/temp__/tops_001.jpg",
	"time": "2018-09-10 12:20",
	"content": "内容内容1111"
	
},{
	"title": "标题2",
	"sub": "对标题2的简介",
	"image_url": "http://www.lhave.cn/static/lhave/images/temp__/temp_index_banner3.jpg",
	"time": "2018-09-10 13:20",
	"content": "内容内容2222"
	
},{
	"title": "标题33333",
	"sub": "对标题3333的简介",
	"image_url": "http://www.lhave.cn/static/lhave/images/temp__/temp_index_banner3.jpg",
	"time": "2018-05-10 14:20",
	"content": "内容内容3333333333333333"
	
}]';


echo '{"code":"200",
		"msg":"号码通过正确",
		"url":"http://www.baidu.com",
		"data":{
			"list":' . $arr . '
    	},
			"total":"2"
    }';
//total 总共有几页
?>